package com.taobao.top.converter
{
	import com.taobao.top.model.ShopCat;
	
	public class ShopCatConverter
	{
		public function ShopCatConverter()
		{
		}
		
		/**
		 * 将JSON对象转化为ShopCat
		 * @param shopCatObj 包含ShopCat内容的JSON对象
		 * 
		 */		
		public static function convert(shopCatObj:Object):ShopCat
		{
			var shopCat:ShopCat = new ShopCat();
			shopCat.cid = shopCatObj.cid;
			shopCat.is_parent = shopCatObj.is_parent;
			shopCat.name = shopCatObj.name;
			shopCat.parent_cid =shopCatObj.parent_cid;
			return shopCat;
		}
	}
}